﻿<Application x:Class="FishingSearch.App"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             StartupUri="MainWindow.xaml">
    <Application.Resources>

        <Style x:Key="ExpanderMainWindow" TargetType="{x:Type Expander}">
            <Setter Property="FontFamily" Value="Global User Interface"></Setter> 
            <Setter Property="Foreground" Value="White"></Setter>
        </Style>

        <Style x:Key="ExpanderMainWindowTitles" TargetType="{x:Type Expander}">
            <Setter Property="FontFamily" Value="Global User Interface"></Setter>
            <Setter Property="Foreground" Value="White"></Setter>
        </Style>

        <Style x:Key="CustomComboBox"  TargetType="{x:Type ComboBox}">
            <Setter Property="SelectedIndex" Value="0"/>
            <Setter Property="HorizontalAlignment" Value="Stretch"/>
            <Setter Property="VerticalAlignment" Value="Top"/>
            <Setter Property="MinWidth" Value="60"/>
            <Setter Property="UIElement.SnapsToDevicePixels" Value="True"/>
            <Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Disabled"/>
            <Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto"/>
            <Setter Property="ScrollViewer.CanContentScroll" Value="True"/>
            <Setter Property="TextElement.Foreground" Value="Black"/>
            <Setter Property="FrameworkElement.FocusVisualStyle" Value="{x:Null}"/>
            <Setter Property="BorderBrush" Value="Black"/>
            <Setter Property="BorderThickness" Value="1" />
            <Setter Property="Background" Value="#FF00000F" />
        </Style>

        <Style x:Key="CustomButtonSearch" TargetType="{x:Type Button}">
            <Setter Property="Width" Value="100" />
            <Setter Property="Height" Value="100" />
            <Setter Property="Background">
                <Setter.Value>
                    <ImageBrush ImageSource="/ICONS/search_yellow.png" />
                </Setter.Value>
            </Setter>
            <Setter Property="BorderThickness" Value="0" />
        </Style>

        <Style x:Key="ButtonSearch" TargetType="Button">
            <Setter Property="Width" Value="100" />
            <Setter Property="Height" Value="100" />
            <Setter Property="Background">
                <Setter.Value>
                    <ImageBrush ImageSource="/ICONS/search_yellow.png" />
                </Setter.Value>
            </Setter>
            <Setter Property="OverridesDefaultStyle" Value="True"/>
            <Setter Property="Margin" Value="1"/>
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="Button">
                        <Border Name="border" 
                            BorderThickness="0.5"
                            Padding="4,2" 
                             CornerRadius="3" 
                            Background="{TemplateBinding Background}">
                            <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" />
                        </Border>
                        <ControlTemplate.Triggers>
                            <Trigger Property="IsMouseOver" Value="True">
                                <Setter TargetName="border" Property="BorderBrush" Value="Black" />
                            </Trigger>
                        </ControlTemplate.Triggers>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>

        <Style x:Key="RadioButtonMainWindow" TargetType="{x:Type RadioButton}" >
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="{x:Type RadioButton}">
                        <BulletDecorator Background="Transparent">
                            <BulletDecorator.Bullet>
                                <StackPanel Orientation="Horizontal" >
                                    <Grid Width="46" Height="46">
                                        <Rectangle Fill="#3FCCCCCC" RadiusX="10" RadiusY="10" Margin="0.5,0.5,0.5,0.5"/>
                                        <Ellipse
                                            Margin="10,10,10,10"
                                            Fill="#C0C0C0" Width="Auto" Height="Auto" />
                                        <Ellipse x:Name="CheckMark"
                                            Margin="20,10,20,10"
                                            Fill="Green" Width="Auto" Height="Auto" />
                                        <Ellipse x:Name="CheckMark2"
                                            Margin="10,20,10,20"
                                            Fill="Green" Width="Auto" Height="Auto" />
                                    </Grid>
                                    <ContentPresenter Margin="5,0,0,0" VerticalAlignment="Center"/>
                                </StackPanel>
                            </BulletDecorator.Bullet>
                        </BulletDecorator>
                        <ControlTemplate.Triggers>
                            <Trigger Property="IsChecked" Value="false">
                                <Setter TargetName="CheckMark" Property="Visibility" Value="Collapsed"/>
                                <Setter TargetName="CheckMark2" Property="Visibility" Value="Collapsed"/>
                            </Trigger>
                        </ControlTemplate.Triggers>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
            <Setter Property="FontFamily" Value="Global User Interface" ></Setter>
            <Setter Property="Foreground" Value="White"></Setter>
        </Style>
        
        <Style  x:Key="ButtonOkCancel" TargetType="{x:Type Button}">
            <Setter Property="FontWeight" Value="ExtraBlack"/>
            <Setter Property="FontFamily" Value="Global User Interface"/>
            <Setter Property="Foreground" Value="Black"/>
            <Setter Property="Height" Value="40" />
            <Setter Property="Width" Value="80"/>
            <Setter Property="Padding" Value="5"/>
            <Setter Property="HorizontalAlignment" Value="Center"/>
            <Setter Property="VerticalAlignment" Value="Center"/>
        </Style>

        <Style x:Key="TextBoxOptions" TargetType="{x:Type TextBox}">
            <Setter Property="Height" Value="24"></Setter>
            <Setter Property="Width" Value="30"></Setter>
            <Setter Property="MaxLength" Value="3"></Setter>
        </Style>

        <Style x:Key="TextBoxOptionsBrand" TargetType="{x:Type TextBox}">
            <Setter Property="Height" Value="24"></Setter>
            <Setter Property="Width" Value="110"></Setter>
            <Setter Property="MaxLength" Value="15"></Setter>
        </Style>
    </Application.Resources>
</Application>
